import { wechatrequest } from './API/request'
import { getGlobalData } from '../configuration/globaldata'
import { getStorageSync } from '../crossplatform/apiservice/storage'

/**
 * 举报
 */
export const reportPost = ({ params }) => {
  const userinfo = getStorageSync('userinfo')
  return wechatrequest.postform('@@/post/reportPost', {
    data: { ...params, userName: userinfo.userInfoC.userName }
  })
}